package com.smh.demo1.a08;

import com.smh.demo1.common.LogColour;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;

import javax.annotation.PreDestroy;

/**
 * @author shiminghui
 * @date 2025/4/12 13:07
 * @description: TODO
 */
@Scope("request")
public class BeanForRequest {

    private static final Logger log = LoggerFactory.getLogger(BeanForRequest.class);


    @PreDestroy
    public void destroy() {
        log.info(LogColour.Blue("request Scope 的bean销毁"));
    }

}
